Address

fun Address(countryCode: String, streetAddress: String? = null, city: String? = null, state: String? = null, zipCode: String? = null, dependentLocality: String? = null): Address
fun Address(countryCode: String, streetAddress: String? = null, city: String? = null, state: String? = null, zipCode: String? = null, dependentLocality: String? = null): Address

Creates a new instance of Address with the given parameters.

Since

8.0.0

Parameters

countryCode

The 2-letter country code.

streetAddress

The full street address.

city

The name of the city.

state

The name of the state.

zipCode

The zip code.

dependentLocality

A subdivision of a city, e.g., an inner-city district or a suburb.

Throws

if the length of countryCode is not two.